package ShoppingCart;

import java.util.ArrayList;

public class Goods implements Print{
	private String name;
	private double price;

	ArrayList<Goods> goods = new ArrayList<Goods>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	private int numbers;
	private String information;

	public void displayAllGoods() {
		for (Goods g : goods) {
			if (g != null) {
				System.out.println(g);
			}
		}
	}
}